search.parse();
var tdg = search.get("datagrid");

$(function(){
	console.info(memberid);
	tdg.url =  __ctx + "/members/gettheallmemberbinds.xhtml";
	tdg.load({"memberid":memberid});
})

function ondrawcell(e){
	if(e.column.field == "bindtype"){
		if(e.record.bindtype){
			if(e.record.bindtype == 1){
				e.html = "微信";
			}else if(e.record.bindtype == 2){
				e.html = "支付宝";
			}else if(e.record.bindtype == 3){
				e.html = "银联";
			}
		}
	}
}
